//
//  AWMsgCenteManage.h
//  JFBase
//
//  Created by Alan Wang on 2018/8/20.
//  Copyright © 2018年 Alan Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JFMsgCenterVo.h"
#import "JFResultVo.h"


@protocol JFMsgCenteProtocol <NSObject>
@required //转发到功能号
//同步方法
- (JFMsgCenterVo*)syncFunctionForward:(JFMsgCenterVo*)vo;
//异步方法
- (void)asyncFunctionForward:(JFMsgCenterVo*)vo;
@end

@interface JFMsgCenteManager : NSObject
//是否开启控制台日志
@property(nonatomic,assign,getter=isDebug) BOOL debug;
+ (instancetype)sharedInstance;
+(JFResultVo*)registerModule:(id<JFMsgCenteProtocol>)instance moduleName:(NSString*)moduleName;
//返回值 只对 返回同步调用有意义
+(JFMsgCenterVo*)requestWithMsgCenterVo:(JFMsgCenterVo*)requestVo callback:(JFCallBack)block;
@end
